GetFontTextEncoding Function
Used to get the text encoding to be used as the output encoding when you are going to display the text in that font. Most fonts will have the same encoding but fonts like Symbol have a different encoding.
Syntax
result = GetFontTextEncoding( FontName )
Parameters | ||
FontName |
Name of a font. It returns the system default encoding if you pass one of the names (e.g., "System", "SmallSystem", "System.UTF8", etc.). |
Notes
In REALbasic, the font names "System" and "SmallSystem" can be used in place of the names of real fonts when you specify the value of the TextFont property for visible controls. When you use these names, REALbasic will choose the default system or small system font for the operating system on which the application is running. Using System and SmallSystem avoids the need to specify different fonts for different operating systems. Use this feature in conjunction with setting font size equal to zero to tell REALbasic to choose the font size for each platform.
Example
The following code returns the text encoding for the Symbol font.
See Also
TextEncoding class.